const path = require('path')

function resolve(dir) {
  return path.join(__dirname, dir)
}

module.exports = {
  publicPath: `${process.env.VUE_APP_PUBLICPATH}`,
  outputDir: process.env.VUE_APP_OUTPUTDIR,
  // 设置映射路径
  chainWebpack: (config) => {
    config.resolve.alias
      .set('@', resolve('src'))
  }
}